package webbeans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;

@SessionScoped
@ManagedBean(name="userManager")
public class UserManager {

	
	public String logout(){
		  FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
	        return "index.xhtml?faces-redirect=true";
	}
}
